package cn.com.api.resultpage;

import java.math.BigDecimal;
import java.util.List;

public class InitDianPingPage {
	/** 用户评分 */
	private double score;
	/** 全部评价数量 */
	private Integer allCount;
	/** 满意数量 >=3星 */
	private Integer goodCount;
	/** 不满意数量<3 */
	private Integer badCount;
	/** 好评率 */
	private double goodRate;

	/** 查询评价的总页数 */
	private Integer totalPage;
	/** 评价列表 */
	private List<DianpingPage> dianPingList;

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		BigDecimal b = new BigDecimal(score);
		this.score = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public Integer getAllCount() {
		return allCount;
	}

	public void setAllCount(Integer allCount) {
		this.allCount = allCount;
	}

	public Integer getGoodCount() {
		return goodCount;
	}

	public void setGoodCount(Integer goodCount) {
		this.goodCount = goodCount;
	}

	public Integer getBadCount() {
		return badCount;
	}

	public void setBadCount(Integer badCount) {
		this.badCount = badCount;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public List<DianpingPage> getDianPingList() {
		return dianPingList;
	}

	public void setDianPingList(List<DianpingPage> dianPingList) {
		this.dianPingList = dianPingList;
	}

	public double getGoodRate() {
		return goodRate;
	}

	public void setGoodRate(double goodRate) {
		BigDecimal b = new BigDecimal(goodRate);
		this.goodRate = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}
	

}
